home *** CD-ROM | disk | FTP | other *** search
- on getphotonumber x, y
- set photox to x - 114
- set photoy to 920 - the locV of sprite 2 + y - 82
- set wk to photoy / 80
- set n to wk * 8
- if (0 <= photox) and (photox <= 52.5) then
- set n to n + 1
- else
- if (52.5 < photox) and (photox <= 105) then
- set n to n + 2
- else
- if (105 < photox) and (photox <= 157.5) then
- set n to n + 3
- else
- if (157.5 < photox) and (photox <= 210) then
- set n to n + 4
- else
- if (210 < photox) and (photox <= 262.5) then
- set n to n + 5
- else
- if (262.5 < photox) and (photox <= 315) then
- set n to n + 6
- else
- if (315 < photox) and (photox <= 367.5) then
- set n to n + 7
- else
- set n to n + 8
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- if (1 <= n) and (n <= 167) then
- return n
- else
- return 0
- end if
- end
-